package com.small.act;

import java.util.ArrayList;

import android.app.Activity;
import android.os.Bundle;
import android.widget.ListView;

import com.small.R;
import com.small.adapter.ShopContactListAdapter;
import com.small.commom.Action;
import com.small.model.ShopBaseInfoModel;

public class ShopContactListActivity extends Activity{ 
	private ListView shopList_view;  
	ArrayList<ShopBaseInfoModel> shopList; 
	ShopContactListAdapter listshop_adpter;
	Action action;

	 
	@SuppressWarnings("unchecked")
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);		 
		setContentView(R.layout.activity_shopaddress_view);
		action = new Action(ShopContactListActivity.this);
		shopList = (ArrayList<ShopBaseInfoModel>)getIntent().getSerializableExtra("shopList");    
		
		initview();
	}

	private void initview() {
		shopList_view = (ListView) findViewById(R.id.shop_listview);  
		if (shopList != null) { 
			listshop_adpter = new ShopContactListAdapter(ShopContactListActivity.this,shopList);
			shopList_view.setAdapter(listshop_adpter);
		} else {
			action.showShortToast("请求失败，请稍候再试...");
		}
		
	}
	 
}
